package com.yx.modules.api.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.yx.modules.api.dao.TbInterviewDao;
import com.yx.modules.api.entity.TbInterview;
import com.yx.modules.api.service.TbInterviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;





@Service
public class TbInterviewServiceImpl implements TbInterviewService {
	@Autowired
	private TbInterviewDao interviewDao;
	
	@Override
	public TbInterview queryObject(Integer id){
		return interviewDao.queryObject(id);
	}
	
	@Override
	public List<TbInterview> queryList(Map<String, Object> map){
		return interviewDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return interviewDao.queryTotal(map);
	}
	
	@Override
	public void save(TbInterview interview){
		interviewDao.save(interview);
	}
	
	@Override
	public void update(TbInterview interview){
		interviewDao.update(interview);
	}
	
	@Override
	public void delete(Integer id){
		interviewDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		interviewDao.deleteBatch(ids);
	}

	@Override
	public Page<TbInterview> queryPageList(Page<TbInterview> page, Map<String, Object> map) {
		page.setRecords(interviewDao.queryPageList(page, map));
		return page;
	}

}
